<?php
    include("handle/config.php");
?>
<?php
	session_start();
	ob_start();
?>
<title>Quản lý hội phí</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />

<link rel="stylesheet" href="styles/layout.css" type="text/css" />
<script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="scripts/jquery.timers.1.2.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.2.1.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.setup.js"></script>
<script type="text/javascript" src="js template/jquery-1.7.2.js"></script>

<!-- jquery autocomplete cho ma hoi vien-->
<link type="text/css" href="css template/bootstrap.css" rel="stylesheet">
<link type="text/css" href="css template/jquery-ui.css" rel="stylesheet">
<script type="text/javascript" src="js template/jquery.min.js"></script>
<script type="text/javascript" src="js template/jquery-ui.min.js"></script>
<script>
	//autocomplete cho mã hội viên
	var nam=<?php echo $_GET['nam'];?>;
	var timmahv = [{ value: "", label: "" }];
	<?php
			include("handle/config.php");
			//lấy mã chi hội ra
			$sql = "SELECT  MACH FROM HOIVIEN WHERE MAHV='$_SESSION[mahv]'";
			$result=mysqli_query($con,$sql);
			$row = mysqli_fetch_array($result);
			$mach=$row['MACH'];
			
			$sql = "SELECT  *  FROM HOIVIEN WHERE MACH='$mach' ";
			$result=mysqli_query($con,$sql);
			
			while($row = mysqli_fetch_array($result))
			{
				echo "timmahv.push({value: '".$row['MAHV']."', label: '".$row['MAHV']."'} );";
				
			}
	?>
	
	$(function() {
		$("#timmahv").autocomplete({
			source: timmahv
		});
	});
</script>
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<script type="text/javascript" src="script sources/QuanLyHoiPhi.js"></script>
</head>
<body id="top">
	<?php $qlhv ="active"; include("header.html"); ?>
	<div class="wrapper">
	  <div class="container">
		<?php 
			switch($_GET['content'])
			{
				case "dshp": include("html sources/quan ly hoi phi/DSHoiPhi.html"); break; 
				case "dsdonghp": include("html sources/quan ly hoi phi/DSDongHoiPhi.html"); break; 
				case "themhoiphi": include("html sources/quan ly hoi phi/ThemHoiPhi.html"); break; 
				case "capnhathp": include("html sources/quan ly hoi phi/CapNhatHoiPhi.html"); break; 
			}
		?>
		</div>
	</div>
</body>
</html>
